/**
 * @author sk.z
 */
public class Test {

    public static void main(String[] args) {
        for (int i=0; i<11 ; i++){
            System.out.println(i+" mid : "+midNum(i) + " is even : "+isEven(i));
        }
    }

    private static int midNum(int i){
        if (i==0){
            return 0;
        }
        return i/2;
    }

    private static boolean isEven(int i){
        return i%2==0;
    }
}
